package com.woniuxy.commons.service;

import com.woniuxy.commons.entity.TestPaper;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/20 0020-下午 8:24
 */
@FeignClient(name = "INSTRUCTOR")
public interface RemotePaperService {
    @GetMapping("/getPaper/paper/{paperID}")
    TestPaper getPaperById(@PathVariable("paperID") Long paperID);

    @PostMapping("/operatePaper/insertPaper")
    long insertPaper(@RequestBody TestPaper testPaper);
}
